'''
01/12/2011
autor: Sérgio Santos nº 5626
'''

from javax.swing import JButton, JFrame

frame = JFrame('Exit!',
            defaultCloseOperation = JFrame.EXIT_ON_CLOSE,
            size = (300, 300)
        )

def change_text(event):
	    
	print 'Clicked!'

button = JButton('Click Me!', actionPerformed=change_text)
frame.add(button)
frame.visible = True


